package com.xiaomaoguai.simple;

/**
 * @ FileName: Client.java
 * @ Author: WeiHui-Z
 * @ Date: 2017/9/15 15:44
 * @ Version: v1.0.0
 */
public class Client {

    public static void main(String[] args) {
        //组装责任链
        Handler handler1 = new ConcreteHandler();
        Handler handler2 = new ConcreteHandler();
        handler1.setSuccessor(handler2);
        //提交请求
        handler1.handleRequest();
    }
}
